Adds test for a race condition that results in inverted flush order between PersistenceRows and PersistenceWindows