Refactored repository tests to use mother object.
Implemented delete logic.