test cases for end/start node retrieval