Updated UserData test in userdatatest.py to handle string tests better