Removes extra '\' in beforeEach and afterEach snipet