Write some tests for restoring of QEMU