Unit testing plugin code

Here is another approach that directly uses Rhino/RhinoCommon