Add unit test and fix bugs for Linux Sched State Block.