tests and bugfixes for HttpRequest.uri
test and fix setting port