unit test for getUserDetails