             numberParsed += 1
             if numberParsed == 1 {
                 XCTAssert(request.method == .get)
-                XCTAssert(request.uri == "/")
+                XCTAssert(request.uri.path == "/")
                 XCTAssert(request.version.major == 1)
                 XCTAssert(request.version.minor == 1)
                 XCTAssert(request.rawHeaders.count == 0)
             } else if numberParsed == 2 {
                 XCTAssert(request.method == .head)
-                XCTAssert(request.uri == "/profile")
+                XCTAssert(request.uri.path == "/profile")
                 XCTAssert(request.version.major == 1)
                 XCTAssert(request.version.minor == 1)
                 XCTAssert(request.rawHeaders.count == 0)

            let parser = RequestParser { request in
                numberParsed += 1
                XCTAssert(request.method == Method(code: i))
                XCTAssert(request.uri == "/")
                XCTAssert(request.version.major == 1)
                XCTAssert(request.version.minor == 1)
                XCTAssert(request.rawHeaders.count == 0)

        let parser = RequestParser { request in
            numberParsed += 1
            XCTAssert(request.method == .get)
            XCTAssert(request.uri.path == "/")
            XCTAssert(request.version.major == 1)
            XCTAssert(request.version.minor == 1)
            XCTAssert(request.rawHeaders.count == 0)
