add some unittest
response supports xml and json