Add unit tests

Ignore this for a while, as I am going to be debugging tests via Travis.  WIP!