test fixes
synced with hibernate3 version
GRAILS-10544 fixing the cache provider if it's not correctly set