Added/adjusted tests for stopWorker plugin hook.