Fix afterEach wrap