Add test for write.hxsurf