test for delete method passed