         do {
             let data = try result.value()
             XCTAssert(data is Data)
-
-            expectation.fulfill()
-        } catch {
-            XCTFail("Error performing GET: \(error)")
-        }
-
-        await waitForExpectations(timeout: 5)
+        } catch {
+            XCTFail("Error performing GET: \(error)")
+        }
     }
 
     func testDecodableResponse() async {
-        let expectation = expectation(description: "POST JSON network call and decodable object is returned")
-
         guard let rest = RestController.make(urlString: "https://httpbin.org") else {
             XCTFail("Bad URL")
             return

            XCTAssert(response.json?.someDouble == someObject.someDouble)
            XCTAssert(response.json?.someBoolean == someObject.someBoolean)
            XCTAssert(response.json?.someNumberArray[2] == someObject.someNumberArray[2])

            expectation.fulfill()
        } catch {
            XCTFail("Error performing POST: \(error)")
        }

        await waitForExpectations(timeout: 5)
    }

    func testUnexpectedStatusCode() async {
        let expectation = expectation(description: "GET JSON network call")
        
        guard let rest = RestController.make(urlString: "https://httpbin.org/get") else {
            XCTFail("Bad URL")
            return

        do {
            let json = try result.value()
            XCTAssert(json["url"].string == "https://httpbin.org/put")
        } catch {
            XCTFail("Error performing PUT: \(error)")
        }
    }

    func testGetImage() async{
        guard let rest = RestController.make(urlString: "https://www.google.com/images/branding/googlelogo/1x/googlelogo_color_272x92dp.png") else {
            XCTFail("Bad URL")
            return
