spec test for AuthenticationService