implemented testing suite and created tests for vote