template tests for local vars