     func testPostBody() {
         let expectation = self.expectation(description: #function)
 
-        let bodyData = API.JSONData(body: ["type": "post", "number": 2])
+        let bodyData = API.JSONData(["type": "post", "number": 2])
         API.shared.post(url: URL(string: "body")!, body: bodyData) { result, error in
             let data = result as? [String: Any]
             XCTAssertEqual(data?["type"] as? String, "post")

    func testPutBody() {
        let expectation = self.expectation(description: #function)

        let bodyData = API.JSONData(body: ["type": "put", "number": 1])
        API.shared.put(url: URL(string: "body")!, body: bodyData) { result, error in
            let data = result as? [String: Any]
            XCTAssertEqual(data?["type"] as? String, "put")

    func testDeleteBody() {
        let expectation = self.expectation(description: #function)

        let bodyData = API.JSONData(["type": "delete", "number": 4])
        API.shared.delete(url: URL(string: "body")!, body: bodyData) { result, error in
            let data = result as? [String: Any]
            XCTAssertEqual(data?["type"] as? String, "delete")
