added a test for XStreamSerializeAs