fixed splitting test cases in cases the number of permutations is less than the number of folds