Test was trying to cleanup output_dir too early