libvirt test code