Scheduler tests