You're calling `#with_json_warnings`, `#collect_stderr`, and `JSON.parse` in all of these tests. Maybe instead of `#with_json_warnings` there should just be a `#collect_json_warnings` that collects and parses all the JSON that's emitted in a block.