neighboor test function