Added commit command and test