Implement test for DirectoryManager class