FIX bug in XML in test harness

Introduced in PR #338