fix directory tree problems for tests