UserTest: Cover User::isIP and User::isValidUserName better

Change-Id: I4663c37871492c1415152b2af0fda4f6de4f212f
Merge "UserTest: Cover User::isIP and User::isValidUserName better"