test foreach
refactor GroovyTemplateSqlSource