         tag2 (util/create-and-save-tag 2 2)]
     (testing "find latest revsions"
       (are3 [tags params]
-            (= (set tags)
+        (is (= (set tags)
                (set (->> (util/find-latest-concepts :tag params)
                          :concepts
-                         (map #(dissoc % :provider-id :revision-date :transaction-id)))))
-            "with metadata"
-            [tag1 tag2] {}
-
-            "exclude metadata"
-            [(dissoc tag1 :metadata) (dissoc tag2 :metadata)] {:exclude-metadata true}))
+                         (map #(dissoc % :provider-id :revision-date :transaction-id))))))
+        "with metadata"
+        [tag1 tag2] {}
+
+        "exclude metadata"
+        [(dissoc tag1 :metadata) (dissoc tag2 :metadata)] {:exclude-metadata true}))
 
     (testing "find all revisions"
       (let [num-of-tags (-> (util/find-concepts :tag)

    (testing "find with parameters"
      (testing "latest revsions"
        (are3 [granules params]
              (= (set (map util/expected-concept granules))
                 (set (-> (util/find-latest-concepts :granule params)
                          :concepts
                          concepts-for-comparison)))
              ;; These are the only valid combinations for granules
              "provider-id, granule-ur"
              [gran1] {:provider-id "REG_PROV" :granule-ur "G1-UR"}

              "provider-id, native-id"
              [gran2] {:provider-id "REG_PROV" :native-id "G2-NAT"}

              "no metadata"
              [(dissoc gran1 :metadata)] {:provider-id "REG_PROV"
                                          :granule-ur "G1-UR"
                                          :exclude-metadata true}))

      (testing "all revisions"
        (are3 [rev-count params]
              (= rev-count
                 (count (-> (util/find-concepts :granule params)
                            :concepts)))
              "provider-id, granule-ur - two revisions"
              2 {:provider-id "REG_PROV" :granule-ur "G2-UR"}

              "provider-id, native-id - three revisons"
              3 {:provider-id "REG_PROV":native-id "G1-NAT"})))))


(deftest find-collections-with-invalid-parameters

                                                            :version-id "v1"
                                                            :short-name "s1"}})
        coll2 (save-collection "REG_PROV" 2 {:extra-fields {:entry-id "entry-2"
                                                            :entry-title "et2"
                                                            :version-id "v1"
                                                            :short-name "s2"}})
        associated-tag (util/create-and-save-tag 1)
        tag-association1 (util/create-and-save-tag-association coll1 associated-tag 1 3)
        tag-association2 (util/create-and-save-tag-association coll2 associated-tag 2 2)]
    (testing "find latest revisions"
      (are3 [tag-associations params]
        (is (= (set tag-associations)
               (set (->> (util/find-latest-concepts :tag-association params)
                         :concepts
                         (map #(dissoc % :provider-id :revision-date :transaction-id))))))

        "by associated-concept-id"
        [tag-association1] {:associated-concept-id "C1200000000-REG_PROV"}

        "with metadata"
        [tag-association1 tag-association2] {}

        "exclude metadata"
        [(dissoc tag-association1 :metadata) (dissoc tag-association2 :metadata)] {:exclude-metadata true}))

    (testing "find all revisions"
      (let [num-of-tag-associations (-> (util/find-concepts :tag-association {})
