Fixed the output csv row header, moved into a global HEADER_ROW_FIELDS, added a test