@polesye Refactored `beforeEach` function.