Add tests for TaskStore.eventHandler