Add whilst to TestScheduler.