Assert on add_candidate type