Fix imports in various functional test scripts.