add unittest on xml document + support by default multipart message

* add the unit test for the parser build function
* use by default multipart parameter