Improve `lib/utils.js` code coverage.