Fixed a bug where test documents needed to be loaded from XML