Fixed language manager unit test. Issue #3957

Okay.  I am opening this new pull request to fix all of the merge issues of my last pull request (Issue #4097).

The code here takes all of the array of expected file extensions and makes sure it contains the actual file extensions, thus doing away with the problem of having to make the file extension arrays match.

I have tested this under my Windows VM and everything appears to work.