Tests for xml serializer