FIX response of POST and PUT to accord with _type

- add tests
Merge pull request #11 from jangxyz/master

FIX response of POST and PUT to accord with _type