Fixed test issue with output dir