add unit test for the xml parser