Added tests for HttpRequest factory