Working GroupedSVM and unit tests