unit test fixes with data and temp directories