In short: by keeping testing in mind, you make your code better.
"Does this thing roughly do what I think it does?" is a secondary goal for me.
Very often, optimizing certain kinds of code for unit testing makes it significantly more complicated, with none of that complexity helping you in the actual program. This is especially true for "end user" code, such as controllers.