Added testing for xml export. Issue: #453