simplify template handler test