Unit test for testing whether there is a nearby point