core+contrib: updating tests to work in IE8, adding legacy.js shim