Add interface for CustomKernel on GP, fixed unit test errors.