tests: add sample_weight test