GRAILS-11354 - copy test from master branch