fixes test_dump_json that failed on mac b4