t5520: replace $(cat ...) comparison with test_cmp