fixing XML import/export test

(fix provided by Howard and Clebert)