fix unit test for User