added tests for user_profile_to_dict and utf8