Test code for Smarty template framework