Improve commit's code coverage.

commit_spec.rb: 87.14% -> 98.57%
overall: 90.91% -> 92.16%