added testing for knn to hw

added in testing