Fixed 3D netCDF generation

Added tests for lat long list generation.
Fixed 3D netCDF tests