Wrap Tokio based code with a mock task.
This allows writing tests that are able to assert that a task is notified on an event.