Add tests for some ignore issues

There are many other uncaught bugs, but this catches bugs corresponding
to a few open issues
Merge remote-tracking branch 'origin/ignore-test-cases' into deep_ignores