TST small improvement of test for sample weight in svm