Abstract testing using before/afterEach