Fixed issue with unit tests and file extension recognition