[libvirt] [test-API][PATCH] Add new APIs and fix problems in connectAPI