Add test for gitignore implementation. Inject noop impl where necessary.