testing map functionality in chatconvo and chatroom