test mapping discoverer for multiple XBRL documents.
Fix some bugs.