changed test to work with older versions of Groovy