Fix failing tests in IE9