add some test about sampling