proper clearing of mocks