fixed bug in test with missing output directory