I'm not sure this should be a TestFail, since this doesn't have anything to do with dumping xml (subject of test).  Really test is not going to run because environment conditions are not met.  I think error.testNA is more appropriate here.