tested Folding for test and train matrix