LUN-718: added test for plugins template validation on site form.
LUN-718: added decorator for setting TEMPLATE_DEBUG on.