added test for invalid xml