Test is technically correct but update needed for versioning as data
header causes data to be stripped out during condition checking. Fixed
data not being return to write file to disk.