updates to get_all_condidates; update tests