Improved and simplified geographic tests on nodes