Updated PluginManager unit tests to pass according to the changes