fixing authentication flow to work with WebSphere and proxy server - fix tests