Added tests for UserData class