t7603: add new testcases to ensure builtin-commit uses reduce_heads()