We must use Test::MockModule here. Anyway, this should be addressed globally not in this pull request.