start using User as parameter instead of sessionKey in ScheduleHandler

+ fix ScheduleHandlerTest