Small refactoring.
Added UserControllerTest.