modified sampler testing framework