added tests or edge cases and fix #8
should pass the unparsable body anyway
Merge pull request #11 from mycozycloud/bugfix/edgecases

added tests for edge cases and fix #8