Updated error generation for knn with new test set