         let packageCollections = PackageCollections(configuration: configuration, storage: storage, providers: providers)
 
         try mockCollections.forEach { collection in
-            _ = try await { callback in packageCollections.addCollection(collection.source, callback: callback) }
+            _ = try tsc_await { callback in packageCollections.addCollection(collection.source, callback: callback) }
         }
 
         do {
             // search by pacakge name
-            let searchResult = try await { callback in packageCollections.findPackages(mockVersion.packageName, callback: callback) }
+            let searchResult = try tsc_await { callback in packageCollections.findPackages(mockVersion.packageName, callback: callback) }
             XCTAssertEqual(searchResult.items.count, 1, "list count should match")
             XCTAssertEqual(searchResult.items.first?.collections.sorted(), expectedCollectionsIdentifers, "list count should match")
         }
 
         do {
             // search by pacakge description
-            let searchResult = try await { callback in packageCollections.findPackages(mockPackage.summary!, callback: callback) }
+            let searchResult = try tsc_await { callback in packageCollections.findPackages(mockPackage.summary!, callback: callback) }
             XCTAssertEqual(searchResult.items.count, 1, "list count should match")
             XCTAssertEqual(searchResult.items.first?.collections.sorted(), expectedCollectionsIdentifers, "list count should match")
         }
 
         do {
             // search by pacakge repository url
-            let searchResult = try await { callback in packageCollections.findPackages(mockPackage.repository.url, callback: callback) }
+            let searchResult = try tsc_await { callback in packageCollections.findPackages(mockPackage.repository.url, callback: callback) }
             XCTAssertEqual(searchResult.items.count, 1, "list count should match")
             XCTAssertEqual(searchResult.items.first?.collections.sorted(), expectedCollectionsIdentifers, "collections should match")
         }
 
         do {
             // search by pacakge repository url base name
-            let searchResult = try await { callback in packageCollections.findPackages(mockPackage.repository.basename, callback: callback) }
+            let searchResult = try tsc_await { callback in packageCollections.findPackages(mockPackage.repository.basename, callback: callback) }
             XCTAssertEqual(searchResult.items.count, 1, "list count should match")
             XCTAssertEqual(searchResult.items.first?.collections.sorted(), expectedCollectionsIdentifers, "collections should match")
         }
 
         do {
             // search by product name
-            let searchResult = try await { callback in packageCollections.findPackages(mockProducts.first!.name, callback: callback) }
+            let searchResult = try tsc_await { callback in packageCollections.findPackages(mockProducts.first!.name, callback: callback) }
             XCTAssertEqual(searchResult.items.count, 1, "list count should match")
             XCTAssertEqual(searchResult.items.first?.collections.sorted(), expectedCollectionsIdentifers, "list count should match")
         }
 
         do {
             // search by target name
-            let searchResult = try await { callback in packageCollections.findPackages(mockTargets.first!.name, callback: callback) }
+            let searchResult = try tsc_await { callback in packageCollections.findPackages(mockTargets.first!.name, callback: callback) }
             XCTAssertEqual(searchResult.items.count, 1, "list count should match")
             XCTAssertEqual(searchResult.items.first?.collections.sorted(), expectedCollectionsIdentifers, "collections should match")
         }
 
         do {
             // empty search
-            let searchResult = try await { callback in packageCollections.findPackages(UUID().uuidString, callback: callback) }
+            let searchResult = try tsc_await { callback in packageCollections.findPackages(UUID().uuidString, callback: callback) }
             XCTAssertEqual(searchResult.items.count, 0, "list count should match")
         }
     }


        do {
            let unknownProfile = PackageCollectionsModel.Profile(name: "profile-\(UUID().uuidString)")
            XCTAssertThrowsError(try await { callback in packageCollections.moveCollection(mockCollections[2].source, to: 1, in: unknownProfile, callback: callback) }, "expected error")
        }
    }



        do {
            // empty search
            let searchResult = try tsc_await { callback in packageCollections.findTargets(UUID().uuidString, searchType: .exactMatch, callback: callback) }
            XCTAssertEqual(searchResult.items.count, 0, "list count should match")
        }
    }
