Refactored brittle ScheduledTask specs.