Add tests for TaskStore.dispatch & TaskStore.register