changed before/after hooks to beforeEach/afterEach