Fixing test of svm
Thesis: other fixes