Added tests for UserService.