Iterate over beforeEach and afterEach blocks by reference, not copy