Added tests for the lib/cli/generate.js file