Add specs for pretty print JSON

They only check that the response includes `\n`, which should not happen
otherwise.