To paraphrase Jeff & Joel's recent comments on the SOB: you should do unit testing when it adds value to your product.
In the two cases you describe, you would be able to do a WHOLE LOT of ad-hoc fixes (and/or post-facto regression testing) for the same cost as writing unit tests. So don't write unit tests.