Added some tests for HTTP environment.