Test for Accept and Content-Type request headers.
Remove trailing whitespace.
Fix failing test.