Make test runner more robust in IE6-7