Improved #21230 -- removed direct settings manipulation from template tests