reduced a redundant variable; fix for wrong tid
added the test program for kthread