added unit tests for CandidatePilot