finished to integrate test lines in sched.c