Add afterEach function