added test for subsampling without replacement