cleaning vote code with test