implemented testing suite and creating tests for vote