Add basic tests

Included are a few unit tests I wrote while exploring this project. They cover only the lowest-hanging fruit, but it's a start.  I've used [speclj](http://speclj.com/) since I like the autorunner, but I'm not attached if anyone has a strong preference for another framework.