[PATCH v2 07/30] tests/test-qmp-cmds: Simplify test data setup