Adding Unit Tests for XmlFormatters with DeclaredType as object.

Issue #1072 
Assert.Equal(expectedOutput, Assert.Single(result).RawValue);