Fixing some compilation warnings in xml tests