added tests for VotesController and refactored existing tests