test for http://jira.grails.org/browse/GRAILS-9627