fixed tests and raster data output