TST + FIX ensure that it fails if sample_weight has not proper length