added tests for user_profile_to_dict utf8 and structured_query