Fixed broken unit tests.
Created new class for file extensions.