create testdir and testdir/foo.txt