Added unit test for kernel

not yet finished