Add simple unittests

Closes #47. I can finally start making progress on all these pull requests. Sorry for the wait everyone!