The optimal amount of testing should be having a test for every mistake you may reasonably do.