Fix the tests on the JVM.