Add tests for WorkerEvent