             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)
+        } catch {
+            XCTFail("Error performing POST: \(error)")
+        }
     }
 
     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

            XCTAssert(json["url"].string == "https://httpbin.org/post")
            if let errorCode = json["json"]["error_code"].int, errorCode != 5 {
                XCTAssert(errorCode == 2)
                expectation.fulfill()
            } else {
                XCTFail("Error code sent was a 2, should pass")
            }
        } catch {
            XCTFail("Error performing POST: \(error)")
        }

        await waitForExpectations(timeout: 5)
    }
}

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

    func testPOST() async {
        guard let rest = RestController.make(urlString: "https://httpbin.org") else {
            XCTFail("Bad URL")
            return
