Fix test_invalid_vote