More robust test for sample_weight in Ridge.