Mongodb persistence tests