Fix test for legacy IE