updating to use PluginError and updating tests