[libvirt] [test-API][PATCH V2] Modify previous test cases by invoking api