Refactor specs

I tried to refactor specs with json_spec matchers and other RSpec built in matchers.
Hope this can make specs easier to maintain. :smile: