added a pncwrite tester that matches up with ncwrite and h5write