Include template tests in runtests script (2.3.x)

Backport of #2807