in reply to Test::MockObject and imported functions

Test::MockObject isn't really the right module for this. It relies on method dispatch. Test::MockModule is likely better.

You could mock import() if you like, but it'll be more work that way.