Added appendDirectory() test.