Fix test_tasks_base