Move creation of task-cancelled state to fixture