better scope for mocking dep