[#88] add test to check that bad xml returns an error