fix unit test for user