Added tests for the SVM implementation.