test called with json data