testing function adjacent in raster