Added more unit tests for user controller.