Added some unti tests for voting logic