Fixed test coverage for user controller.