fixed the votes controller
Merge pull request #27 from andmcgregor/tests

fixed the votes controller