createSampler test cases