Add tests for PluginsManager class.