Fix test running in IE

by default, mocha.run() is synchronous in IE but not in other browser.
Add a setTimeout to have IE work like others. (this should be fixed
upstream).