Add test for chained next and previous