Added async stuff in beforeEach for QUnit