This is a good point. The longer I've been at this, the less often, "this is likely to work" is a thought that I let go unchallenged.
(joking)
I have a healthy doubt of my own work that seems to end up making it work well first by keeping it as simple as possible.
Keeping the mindset of an innocent beginner is critical as a developer with experience. Everything is easy in the beginning, not the long term - I like to see what code bases people have worked on for many years instead of being able to neatly start from scratch.
I have a healthy skepticism of my own work, it keeps hubris in check. This combined with a preference to keep things simple (to come back to later and to let others join easily), I find encourages everyone to build a code base they want to work on long term.
I find the degree of testing needed can be relative to the difficulty of the problem, the unnecessary complexity of the solution, and the average skill of the developers working on all 3.
Clever (simple) architecture will often beat clever programming in the long run.