used beforeEach instead of beforeAll