i think we should write a separate test for the random sampler. I dont know if this test is fully testing the properties of the random sampler.