added unit test for postJson method, refs #172