make a test pass under with and without jsonobject
Merge pull request #99 from dimagi/improve-test

make a test pass under with and without jsonobject