fix typo
automated testing for code generation with one test courtesy of @pedrolinhares