Changed testJava() to allow Java 8