UserController with unit tests.