First tests for file ops, plus fixes on JVM.