[libvirt PATCH v3 15/21] nodedev: refactor tests to support mdev undefine