Added integration test. Also added xml and another bson serialization.