Add result checking to template test case.