Fix unit test for candidates.