wrote a unit test for update_vote_count