Fixing issue #723. Made the Groovy backend instance a thread local so that tests can run in parallel in the same JVM