qemu: Minor fixes for qemu test cases