update tests for tasks and events