[Serializer] Added a test for decoding xml with whitespaces