add test for Xml::Wrapper 95% code coverage. fix name resolution for CpiError in the Wrapper class. fix a bug in Wrapper.add_child method.

Change-Id: I73e00bfbc828424c472412e6c87859749e657e76