Fix to authentication test