Remove trailing slash in `locationPath` of test/underscore.html.
Fix `Function.prototype.toString` mock in test/ to avoid errors in Firefox.