Add tests for parsing generator declarations.