Fix some timing-based tests which were sometimes failing on slow/loaded machines/IE.