add test
correspond to xml format. delete debug code