GROOVY-6480, GROOVY-6481: Fixed failing unit test