make a test pass under with and without jsonobject