[libvirt] [test-API PATCH 2/4] modify framework to support it