add test for knn

Signed-off-by: changedi <jysoftware@gmail.com>