UserController and unit tests