improved coverage of json toString functions