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

Issue https://github.com/aspnet/Mvc/issues/607.
Seems like you're testing test code. `HttpRequest` doesn't throw and nothing in the formatter context enforces this behavior