added template functionality to the testcase-mode.el