add tests for the voting controller