Add pluginDirectoryManager tests