Rename ScheduleHandle to Def. Add test.