used config instead of grailsApplication in test cases ticket #15.