Add some more thorough tests to #flat_errors.