Cache Repo instance for tests