force JAVA_HOME for test, remove version, add head