use correct method, fix failing tests
Merge branch '2.3.x' of github.com:grails/grails-core into 2.3.x