xml_send_messages function + missing tests for requests