Added test coverage for edit and delete