test for GRAILS-9864

#1 may not actually be broken - just doesn't work in unit tests because of GRAILS-9864