If I understand your question correctly, I would suggest you take a different approach.
Instead of looking at the entire body of the response and seeing if the lines match, you can alternatively check the individual Json properties that make up the response body. For example, you can do the following:
var data = JSON.parse(responseBody);
tests["name is null"] = data.name === null;
tests["nameType is non-refundable"] = data.nameType === "NON_REFUNDABLE";
, , . examples.