Fix imports in test internal api