Fix test failure on IE<10