Fixed test broken by local_constant_names 

depreciation removed

Will remove this commit from #11274