lib/codegen.js testing, exception output mod