Introducing UnitTests for XmlFormatters to confirm that headers are always written before writing the body.

Issue https://github.com/aspnet/Mvc/issues/607.
Wouldnt this be the case even for other formatters (Json, TextPlain etc.)? should we add tests for them as well?