add utest for kernel codec
add core utest