             XCTFail()
             return
         }
-        let secondMessageJSON = Array(secondUsedBody["messages"] as! [[String: Any]])[0]
+        let secondMessageJSON = Array((secondUsedBody["messages"] as! [[String: Any]]))[0]
         XCTAssertNotEqual(messageJSON["identifier"] as! String, secondMessageJSON["identifier"] as! String)
     }
 

            XCTFail()
            return
        }
        let messageJSONs = Array(lastUsedBody["messages"] as! [[String: Any]])
        XCTAssertEqual(messageJSONs.count, 1)

        guard let messageJSON = messageJSONs.first else {

            XCTFail()
            return
        }
        let messageJSON = Array((firstUsedBody["messages"] as! [[String: Any]]))[0]

        let secondExp = expectation(description: "Wait for response")

