testing payload is a json object