Fixed an issue with promise not returning in updateConfig
Updated spec for template.helper
Added helper function for updating config