put beforeEach in the mock setups so that the mocks get reset before each test