test beforeAll and beforeEach