Fixed addPlugin unit test to use a different approch for verifying custom plugin was succssfully registered and works as expected