[MRG]Added has_fit_parameter method

Fixes #3711 
Ping @mblondel 
Create a separate function `test_sample_weight_missing`. Test the regressor class as well.