           (is (re-matches #".*Parameter \[unsupported\] was not recognized.*" body))))))
   (t/testing "search by un-supported options." [context]
     (try
-      (search/find-collection-refs context {:dataset_id "abcd", "options[dataset_id][unsupported]" "true"})
+      (search/find-collection-refs context {:dataset_id "MinimalCollectionV1", "options[dataset_id][unsupported]" "true"})
       (catch clojure.lang.ExceptionInfo e
         (let [status (get-in (ex-data e) [:object :status])
               body (get-in (ex-data e) [:object :body])]

        ;; TODO We should return a URL in the references once the retrieval feature is implemented.
        #_(is (re-matches #"http.*/catalog-rest/echo_catalog/datasets/C[0-9]+-CMR_PROV1$" location)))))
  (t/testing "search by multiple versions." [context]
    (let [references (search/find-collection-refs context {"version[]" ["1", "3"]})
          dataset-ids (map #(:dataset-id %) references)]
      (is (= 2 (count references)))
      (is (= #{"MinimalCollectionV1" "AnotherCollectionV1"} (into #{} dataset-ids)))))

          dataset-ids (map #(:dataset-id %) references)]
      (is (= 2 (count references)))
      (is (= #{"OneCollectionV1"} (into #{} dataset-ids)))))
  (t/testing "search by version using wildcard *." [context]
    (let [references (search/find-collection-refs context {:version "r*", "options[version][pattern]" "true"})
          dataset-ids (map #(:dataset-id %) references)]
      (is (= 2 (count references)))
      (is (= #{"OtherCollectionV1" "AnotherCollectionV1"} (into #{} dataset-ids)))))
  (t/testing "search by version using wildcard ?." [context]
    (let [references (search/find-collection-refs context {:version "r?", "options[version][pattern]" "true"})
          dataset-ids (map #(:dataset-id %) references)]
      (is (= 2 (count references)))
      (is (= #{"OtherCollectionV1" "AnotherCollectionV1"} (into #{} dataset-ids)))))
  (t/testing "search by version case not match." [context]
    (let [references (search/find-collection-refs context {:version "R1"})]
      (is (= 0 (count references)))))
  (t/testing "search by version ignore case false." [context]
    (let [references (search/find-collection-refs context {:version "R1", "options[version][ignore_case]" "false"})]
      (is (= 0 (count references)))))
  (t/testing "search by version ignore case true." [context]
    (let [references (search/find-collection-refs context {:version "R1", "options[version][ignore_case]" "true"})]
      (is (= 1 (count references)))
      (let [{dataset-id :dataset-id} (first references)]
        (is (= "AnotherCollectionV1" dataset-id))))))
