libvirt.test: Fix bugs in macvtap test

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