t7501: always use test_cmp instead of diff