update unit test for User model