json as tree tests