knn test phase