issue(#51): test to cover double-header writing bug.