Fix the build by skipping test and updatinj java version used