added test cases and comments.
test class for PostXml