Added test for badly formatted xml