Test adding commit if nonexistent. Related to #21.