In the course of staring at my ugly 30 line function trying to figure out how to break it up so I can make it testable, I have found a bug that I didn't know existed. It's probably not a bug I would have thought to write a test case for, either.
There is definitely some software development practice regarding which this forms part of a relevant argument, but I don't know what that practice is nor whether the argument is for it or against it