Fix typo in method name 'generateForOutput()', adjust test accordingly