Added test for GRAILS-9936