Add test for opts.is_json.