making Core internals available for mocking