Increase code coverage

Here are a bunch of obscure corner-case tests to help bolster our code-coverage numbers.  `npm test` now reports 94.1% coverage for me.