Setup mock config factory.