Tests comparing with JSON