added more tests for get2nearestFeature & fixed upstream/downstream bug