Testing the scheduler