Fix test failures in old IE