Fix unittest for xrd plot.