adding toXml functionallity to MFBook with test coverage