Minor fixes to authentication tests.