Fixed issue with async tests using qunit together with sinon