updating to use PluginError and updating tests
Merge pull request #3 from doowb/master

updating to use PluginError and updating tests