Patch Set 4: I would prefer that you didn't submit this; IP review completed

Since for the AddCommand tests you want assertions on the complete state of the index I suggest to use RepositoryTestCase.indexState(). This would remove a lot of lines of your tests.