Adjusted test_svm