[PATCH 07/13] testQemuMonitorJSONGetCommands: Refactor cleanup