Correct deal with exclusion and extensions

Fixes #438
Add tests for checker#checkFile methods