tests for UserController