Added main_stackpointer for heap/stack collision check.
Removed schedulerTest.