stronger test for get_neighbors