libvirt.test: Add test for detach-device

Signed-off-by: Li Yang <liyang.fnst@cn.fujitsu.com>