Add simple rspec tests for json