Updates to mocks.

* add update and delete helpers to mocks
* add repository field.