Move all test setup into beforeEach blocks