added testing to DirectoryBuilder