added PluginTestHelper class containing shared test code