       (is (= 201 (:status resp)))
       (is (= :subject.sex/male
              (:subject/sex (api/subject (d/db (connect)) "id-171917"))))))
+
   (testing "Create with birth-date"
     (let [req {:request-method :post
                :params {:id "id-173133"

               :conn (connect)}
          resp ((create-subject-handler path-for) req)]
      (is (= 409 (:status resp))))))

(deftest study-handler-test
  (letfn [(study [id] (api/study (d/db (connect)) id))

      (is (= 201 (:status resp)))
      (is (= "id-165339" (get-in resp [:headers "Location"])))
      (is (nil? (:body resp)))))

  (testing "Create with sex"
    (let [req {:request-method :post
               :params {:id "id-171917"
