[libvirt] [PATCH 1/2] test: Refactor setting of dummy error handlers