Fix tests on some platforms

See https://github.com/cjohansen/Sinon.JS/pull/523