Added tests for xml parsing & serialization.

TNL-708