test for get_all_by_election_id
simplify semantics
simplify logic