common test for sparsify + fix for SGDRegressor