Merge pull request #13 from seletskiy/master

refactor tests
do not decode body on err (fix #11)