add test for virsh {at|de}tach-disk v2

1.Modify virsh function for this test.
2.Instead of checking guest xml, check guest disk count.
3.Instead of shell "dd" command, use file.seek() function to create a image file.