Test environment for some kinds of perceptron.