fix maxTaskAttempts comparison condition for test case.