add test for exception as XML