Changed error messages and added unit tests for AuthenticationServiceClient.