   (ingest-collections-for-test)
   (util/are2
     [expected-results json-query-conditions options]
-    (= expected-results (get-search-results-summaries (search/find-concepts-in-json-with-json-query
-                                                        :collection
-                                                        (merge {:include-highlights true} options)
-                                                        json-query-conditions)))
+    (= (set expected-results)
+       (get-search-results-summaries (search/find-concepts-in-json-with-json-query
+                                      :collection
+                                      (merge {:include-highlights true} options)
+                                      json-query-conditions)))
 
     "JSON Query keyword with spaces treats as two separate keywords AND'ed together"
     [["Match on either '<em>ocean</em>' or '<em>collection</em>'."]

  (->> search-results
       :results
       :entries
       (map :highlighted-summary-snippets)))

(defn- ingest-collections-for-test
  "Ingest all of the collections that will be used for testing"


    (testing "Most reserved characters are not highlighted when they are searched against."
      (doseq [reserved-string (set/difference reserved-strings
                                reserved-strings-with-different-behavior)]
        (is (= #{[(format "<em>MODIS</em>%s<em>TERRA</em> dataset." reserved-string)]}
               (get-search-results-summaries (search/find-concepts-in-json-with-json-query
                                              :collection
                                              {:include-highlights true}
                                              {:keyword (format "MODIS%sTERRA"
                                                                reserved-string)}))))))

    (testing "Colons are highlighted along with the search string."
      (is (= #{["<em>MODIS:TERRA</em> dataset."]}
             (get-search-results-summaries (search/find-concepts-in-json-with-json-query
                                            :collection
                                            {:include-highlights true}
                                            {:keyword "MODIS:TERRA"})))))

    (testing "Wildcard searches do not highlight any strings with reserved characters except for
             colon."
      (doseq [reserved-string #{"*" "?"}]
        (is (= (set [nil ["<em>MODIS:TERRA</em> dataset."]])
               (get-search-results-summaries
                (search/find-concepts-in-json-with-json-query
                 :collection
                 {:include-highlights true
                  :page-size 1000}
                 {:keyword (format "MODIS%sTERRA"
                                   reserved-string)}))))))))

