t5318-commit-graph: use 'test_expect_code'