Fix DOM tests under IE