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.

Signed-off-by: Yiqiao Pu <ypu@redhat.com>