Add tests for commitcheck.

Add test for re pattern usage.