Some fixes to set_build_result_test. Speedup by using fake java.