Added test for GRAILS-9922