Pushing towards 100%(ish) test coverage.
Added coverage checking to the build along with a bunch of tests.