refactored tests, added voting validations