Added raster and thresholding tests