added tests for auth service