make tests more reliable across multiple org.codehaus.groovy versions