fix up broken test beforeEach hook