Add test for sequence number rollover bug.
Fix sequence number rollover bug.
Merge branch 'seqnr_rollover'