created test for getting user