Feature/first unit tests

Here's the beginning of adding unit tests. There is still a good bit of work to do to improve coverage (currently 33.6% coverage by line).

Also, this PR depends on #2.
Will do. I'm hoping to cover just about everything with unit tests, although I think I need to wrap my head around the FileStore a bit more.