Votes controller: Add creation testing

Fixed some error handling in Votes controller