next/prev test case