[libvirt] [PATCHv2 5/6] tests: Add support for catching domain XML parsing errors