Improved TestManager.compare_files().

Improved extension inspection.