Fixed unit tests for schedule_manager