Fixed a bug where duplicates were not properly checked for when an XML
set when checking files loaded from XMLs versus files loaded from the
file chooser
Added removeTestDocFromList and remove