[libvirt] [PATCH 1..2] make a test more robust, and add two more