Fixing test to work in IE<10