added test for scheduling