API: test "correct" capitalization of key header

Test what we document, not what the code checks for.
Merge pull request #1845 from zeha/api-test-header-name

API: test "correct" capitalization of key header