Tests now work change in beforeEach method