Fixed tests to run without errors in IE8.

No user-facing functionality changed, just testing-related stuff.
Tests now have relevant messages for faster debugging.

Test Plan:
src/expressiontools/test.html

Auditors: alpert