add test and exception for get user info