add unit test for user