implemented test suite and create tests for Vote