add a test case on Sampling