Relocate test generation block code
Merge pull request #141 from jmolivas/module-generation-fix-render-test

Relocate test generation block code