             [cmr.system-int-test.utils.search-util :as search]
             [cmr.system-int-test.utils.index-util :as index]
             [cmr.system-int-test.data2.collection :as dc]
-            [cmr.system-int-test.data2.core :as d2c]))
+            [cmr.system-int-test.data2.core :as d2c]
+            [cmr.common.config :as cfg]))
 
 (def prov1-collection-count 10)
 (def prov2-collection-count 15)

  (index/refresh-elastic-index))

(use-fixtures :each (ingest/reset-fixture {"provguid1" "PROV1" "provguid2" "PROV2"}))

(deftest search-with-page-size
  (create-collections)

    (index/refresh-elastic-index)
    (testing "Search with page_num."
      (let [{:keys [refs]} (search/find-refs :collection {:provider "PROV1"
                                                          :page_size 5
                                                          :page_num 2})]
        (is (= (map :short-name [col5 col4 col3 col2 col1])
               (map :short-name refs)))))
    (testing "page_num less than one."
