Improved test of first-in-first-out order