bugfix: fixed replacement of 'beforeEach' blocks