test case fails, unable to open output files