t1_test: add TEMPLATES_DIR environment