Tweaked modify tests to capture stderr.

Includes some cleanup to modify the results of verification instead of
mucking directly with os.stat and other filesys/os inspection.