Add test coverage for guess_spatial_dimensions()