format tests
changes "null" behaviour and fixes test
Merge pull request #1597 from curit/json-empty-body-behaviour

Json empty body behaviour