Move virt-clone function to virt-test, fix some bugs.