Added support for user credentials in the url and tests.