libvirt-bench: Add test for domstate switch in unixbench.

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
virsh: update dumpxml to return CmdResult object

Signed-off-by: Dongsheng Yang <yangds.fnst@cn.fujitsu.com>
libvirt: adapt calling of virsh.dumpxml to new @return of CmdResult object.

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