Added tests for voting