Add test for Sequence.Reverse.rest corner case bug

(The bug was fixed in 28a1141.)