qemu.tests.qmp_command: Fixes and modifications

This pull request fixes some issues of qmp_command tests. Please find the details in the individual commits.