[libvirt] [test-API PATCH v2] improve testcases after cleanup work