Fixed problem with Content-Type de-referencing, fixes #77
Added producer unit test, fixes #56