wrote KNN tests