Readded testonfolder option to perceptron