adding beforeEach snippet