Test for 2nd problem in http://jira.grails.org/browse/GRAILS-10735