adding unit tests for delete