Cosine KNN test