[os_xml] add testcases for pr #3 (thanls to @loonhxl)