added a test for the xml serialization of the mongo documents.
More bug fixes in indexing