testing existing voting code to see if it validates
added test validation