For testing the perceptron class