Fixed test for existing json file in cleanup_output_dir