Added tests for the scheduling algorithm