Correct deal with exclusion and extensions

Fixes #488
Add tests for checker#checkFile methods