adding scoping to mocks