modified mocha subgenerator to accept after-invocation-name-definition