Change test for json_dir change to generate_context().