Fixing tests that don't work on IE7/8