Almost finished tests for AuthenticationService