format negative and zero duration
fix poor timing design in task cancellation test