Fixed delete thread tests.

Add a template module method that allow you to change the template data before render.