Fixed failing test after GROOVY-6533 backport