add response check for page with authentication, escape uri for
redirection
Merge remote-tracking branch 'ahone/0.7'
Removed commented code
Added test_auth_err tests