unit tests for grd3write.c