libvirt.tests: Adjustments for MigrationTest and StressTest class.

This modification relies on https://github.com/autotest/virt-test/pull/1527.

Signed-off-by: Yu Mingfei <yumingfei@cn.fujitsu.com>