Allow tests to run in IE8

Tests currently fail with JS errors in IE8. These commits allow the test suite to run, so that failing tests can be fixed.