Add tests to ensure that calling Pause() eventually succeeds even if pending tasks never yield.