tests/test-qmp-cmds: Simplify test data setup