Here also, this isn't really a failure to dump_xml, it's a failure to prepare environment.  Can we make this a <code>error.TestError</code> instead?