Added unit tests for auth service