update weighted reservoir sampler constructor unit test