Element.prototype.closest tests and browser configuration