Implemented Rspec and create a test for vote