Issue #2137947 by tim.plunkett, damiankloip: Finish unit tests for PluginBag and subclasses.