Fix CustomKernel-unittest bug.
Fixed Kernel.cpp Warning.
Merge pull request #2164 from pl8787/indexfeatures

Fix CustomKernel-unittest bug.