Fixes ExtractCandidateMap unit test and add its mocks