test n-fold