make sampling_density tests more robust