changed scheduler_nextProcess added testing functions