Add testing cases for svm