test use sample list instead of rand