updated gdal tests and unit type detection