Added tests for schedule