Fix POST test's path
Use JSON content-type only if payload exists
Merge pull request #36 from holic/master

Fixes invalid JSON request body