ScheduledTask now uses CopyOnNotifyObserverSet.
Refactored tests for ScheduledTask.