Fix Exact Gateway test, handle 401 auth failure

Fixes test failure:
RemoteExactTest#test_failed_capture, by testing for correct response string

And test error:
RemoteExactTest#test_invalid_login, by properly handling 401