Implemented DirectoryActivity unit tests.