GRAILS-10301 - fix failing functional test