changed KThread.selfTest()