Fix failing test in older IE

In older IE, `for` enumerate internal properties.

After #2733 merged, this patch fixes failing test.