In addition, the prep for the test was played and the run-through before the first actual test.
DW clearly knows he is taking a polygraph test.
They break the knews to him later. As luck would have it, he failed, not once, not twice, not three, but he failed the test four times.