added lib/cli.js unit test coverage