Messing with Perceptron

This pull request is two different things, I'm just being lazy. I can submit them separately if you'd like.

The Perceptron example has it's Y-axis flipped, so I fixed that to make the printout better. 

The larger part is me starting on an automated test suite, and including some basic Perceptron tests based on the Perceptron example.