Using the common sampler from the testing module.