PDI-11427: Fixed PluginRegistryTest to not count on test execution order

Rather than count on the number of registered plugins being 1 after adding a plugin in testPluginRegistry(), it now checks the plugin count before adding a plugin, then asserts that the count is 1 more than before the addition.