added integration tests for finding the closest node