Unit test for candidates