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

Issue https://github.com/aspnet/Mvc/issues/607.
Would you be following up with another PR just for adding a test? If not i would suggest to add it here.