Add test cases for unique sampling.