t9400: Use test_cmp when appropriate