Update heuristics and test result.