Generate test for users controller