Fix broken test after change the maximal value of the pid. Part of [#2706]