Fixed AuthenticationService tests.