modfiled svm-tests to write predictions