Added tests for delete method