Add test for post with optional custom payload

Support for calling post with optional custom payload was introduced in
8d0695f.