updated test for delete method