added tests, preparing for writing csvh without duplicate headers