Add java version test