Add tests for virt-xxx command in libvirt.