Moving the ignore logic in check_source should reduce the need for mocking the open method.

This test is using check_files, but then the tests are on a single file. Another reason to test on check_source method :)