Added test for failure tolerance (Task recovery from failure)