CommitMessageOutputTest: Add helper methods for checking commits Change-Id: I60f94002b0596e012de66a112e95b91b76f908fa