Improved tests for UserController.