Fix for GRAILS-10474: initialize grailsApplication instance before calling registerBeans in GrailsUnitTestMixin
GRAILS-10854: don't change application name in unit tests if it's already defined