qemu.tests: Add a test case for change queue with migrate

Add a new test case for change queue with migrate. Update the code
to handle the serail session break during test.