Added RSpec and tests for posts and vote model