Bug 16497: Refactor tests using BASIC authentication