Add tests for dK_dtheta and d2K_dtheta2 and use np.allclose
Fix incorrect function calls in kernels