Fix tiebreaking in binary SVM and test for it