Add tests for cli generate command, fixed inaccurate comment