Add corner case tests for diff-index and diff-files