fix strict comparison with header (unicode string)
relax requirement on type for content_type
Merge pull request #352 from mgax/fix-str-types-in-tests

Fix str types in tests