Remove useless variable and add a new test case called kerneltest
Add kernel test