Add missing promise return in test beforeEach