        "AG_MAPSS,2,30\n"))
 
 (deftest community-usage-not-provided-versions
-  (dev-sys-util/eval-in-dev-sys (query-to-elastic/set-sort-use-relevancy-score! true))
+  (dev-sys-util/eval-in-dev-sys `(query-to-elastic/set-sort-use-relevancy-score! true))
   (ingest-community-usage-metrics sample-csv-not-provided-versions)
   (d/ingest "PROV1" (dc/collection {:short-name "AMSR-L1A"
                                     :entry-title "AMSR-L1A V3 Relevancy"

      (is (= "Relevancy 4" (:name (last results))))))

  (testing "Turn off using relevancy score"
    (query-to-elastic/set-sort-use-relevancy-score! false)
    (let [results (:refs (search/find-refs :collection {:keyword "Relevancy"}))]
      (is (= ["Relevancy 4" "Relevancy 3" "Relevancy 2" "Relevancy 1"] (map :name results))))))

(deftest keyword-relevancy-takes-precedence
  (dev-sys-util/eval-in-dev-sys (query-to-elastic/set-sort-use-relevancy-score! true))
  (ingest-community-usage-metrics)
  (d/ingest "PROV1" (dc/collection {:short-name "AMSR-L1A"
                                    :entry-title "Relevancy 1"

    (is (= ["Relevancy 2" "Relevancy 3" "Relevancy 1"] (map :name results)))))

(deftest change-metrics
  (dev-sys-util/eval-in-dev-sys `(query-to-elastic/set-sort-use-relevancy-score! true))
  (ingest-community-usage-metrics)

  (d/ingest "PROV1" (dc/collection {:short-name "AMSR-L1A"
