fixing template test validation for IE
(cherry picked from commit f8e939d30ac53ba672e0f94a20f680d2b6badcfa)