test for xml=>json
better account of branches