             _ (index/wait-until-indexed)
 
             ;;Search for the grid again, it should NOT return the association
-            grid-search-result1 (search-request "grids.json" "name=Grid-A7-v1")
-            grid-search-body1 (json/parse-string (:body grid-search-result1) true)
-            grid-search-generic-associations1 (get-in (first (:items grid-search-body1)) [:associations])
+            grid-search-result1 (get-associations-and-details "grids.json" "name=Grid-A7-v1" :collections false)
 
             ;;Search for the collection again, it should NOT return the association
-            coll-search-result1 (search-request "collections.umm-json" "entry_title=entry-title1")
-            coll-search-body1 (json/parse-string (:body coll-search-result1) true)
-            coll-search-generic-associations1 (get-in (first (:items coll-search-body1)) [:meta :associations :grids])]
+            coll-search-result1 (get-associations-and-details "collections.umm-json" "entry_title=entry-title1" :grids true)]
 
         ;; The first and second associations are successful
         (is (= 200 (:status response1) (:status response2)))

            _ (index/wait-until-indexed)

            ;;Search for the service sv1 again, it should NOT return the association
            sv1-search-result1 (search-request "services.umm_json" "native_id=sv1")
            sv1-search-body1 (json/parse-string (:body sv1-search-result1) true)
            sv1-search-generic-associations1 (get-in (first (:items sv1-search-body1)) [:meta :associations :services])

            ;;Search for the service sv2 again, it should NOT return the association
            sv2-search-result1 (search-request "services.umm_json" "native_id=sv2")
            sv2-search-body1 (json/parse-string (:body sv2-search-result1) true)
            sv2-search-generic-associations1 (get-in (first (:items sv2-search-body1)) [:meta :associations :services])]
        ;; The first and second associations are successful
        (is (= 200 (:status response1) (:status response2)))


            _ (index/wait-until-indexed)

            ;;Search for the collection coll1, it should return the association
            coll1-search-result (get-associations-and-details "collections.umm-json" "entry_title=entry-title1" :collections true)

            ;;Search for the collection coll2, it should return the association
            coll2-search-result (get-associations-and-details "collections.umm-json" "entry_title=entry-title2" :collections true)

            ;;Dissociate the association
            response4 (association-util/generic-dissociate-by-concept-ids-revision-ids
