@jansepar Typically when setting a global variable like this in a test it's common convention to use a `try { ... } finally { ... }` block to make sure it is reset to it's original value. You can see a similar example in Zepto.js: https://github.com/madrobby/zepto/blob/master/test/zepto.html#L1340