simplify test_kernel