[libvirt] [PATCH 17/34] tests: Refactor control flow in testBackingXMLjsonXML