add code coverage reporting (`npm run cover`)
add tests, remove unreachable code, 100% coverage
0.1.1