t: use test_expect_code instead of hand-rolled comparison