[PATCH 11/21] testCompareXMLToArgv: Split out preparation and command formatting