finished unit test for user