Add beforeAll and afterAll functions.