Currently `logger.js` and `index.js` are lacking unit tests. These probably need some refactoring to even support unit testing in a sane way.