Add test for xml loader