batch sampling test