Add afterEach for testing