test for kernel method