It does depend upon the age and sex
of the child.
Under 2 years tests will generally e done to assess if there is a birth defect or damage from the ifection which predisposes to further infection. These tsts are done in any boy, preteen with uti. Older girls are tested if they have more than 1 infection over a short period of time.