test for config templating and context instantiation