Fixed bugs with UserControllerTest