unit test for user creation