Fix an issue with tests being run concurrently in the same JVM.