authenticationService tests