some tests for http://jira.grails.org/browse/GRAILS-10728