Writing perceptron public tests. Full test coverage.
Fixing parameter initialization.