Modify the test case for next/previous

- Ref: fa79d7a590d48f5cf13005daa1786118b99e3d8f