minor changes to java version and gTests functions