test combination of add and commit command