Add missing imports in tests