implement test code on userController