fix cfg imports in tests