Add test when a task fails.