add appconfig configurable
refactor template.spec.js to remove dummy appconfig