t7003: Use test_commit instead of custom function