added a test for RequiredHeaders and OptionalHeaders