explicit coverage for #to_xml