> Is there a test for this?

Of course.  Please see modified tests, -oo one is ~10 lines below modified lines.