Add train for one class and regression svm, and add some unit tests utility