Add tests to achieve full coverage of `diff`