fixed failures in tests for KNearest, SVM and ANN.