> Unit tests help guard against regressions. Since the order was an existing behavior the unit test helps give a heads up to breaking changes, like your proposed optimization PR.

That's an undocumented behavior that add an unneeded restriction and can prevent from some optimizations like PR #1511 that i don't think is a regression.