added unit tests for HttpRequest