a test for commit cmd