Test template and per-model context variables