fixing testGenerateComparison