what happens when an election is contested?