[libvirt] [PATCHv2 02/14] testJSONFromString: regroup if blocks