[Libvirt-cim] [PATCH] [TEST] Add function to check state