Adds test for java version.