Added unit tests for delete method