[PATCH v2 08/30] tests/test-qmp-event: Simplify test data setup