fix unit test to work with new HttpRequest API concerning basic authentication