Add test for post with optional custom payload

Support for calling post with optional custom payload was introduced
in 8d0695f.
Merge pull request #330 from kynan/test/post-alterative-payload

Add test for post with optional custom payload