test kernel method