The answer is that we’re not done yet, because the algorithm works by doing the goals tests when we take a path off the frontier not when we put a path on the frontier. Instead, we just continue in the normal way and choose the node on the frontier which has the lowest value. And that would be this one, the path through Pitesti with a total of 417.