Fixing test failing on IE7/IE8

This commit fixes a test failing on IE7/IE8
yes you're right