Slightly modified the unit tests to get them reliable.
[BUG #8248] Fixed unit test for IE8.