tests: Mock out pluginmanager