fixed some testdir problems