test for add, commit, and status