add test case for traversing nextAll