t7502-commit: add summary output tests for empty and merge commits