Fix failing test in older IE

In older IE, `for` enumerate internal properties.

After #2733