Test commit cmd.