Changed error messages and added unit tests for AuthenticationServiceCli...

...ent.