small fix for virsh_snapshot and add test for virsh snapshot in different type of image.

Signed-off-by: yangdongsheng <yangds.fnst@cn.fujitsu.com>