fix for GRAILS-9980 "In unit tests, make beans available in Grails mainContext"