fixed test_scheduling