Fix failing tests in IE9
Merge pull request #3012 from bartvde/fix-ie9-tests

Failing tests in IE9