Start to implement tests for scheduleloop