Added basic authentication support for WebApi tests.