added some unit tests for PluginPortalClient