unit tests for raster flood optimization #906