Java perceptron tests