optionalheader tests written