Added delete method implementation and tested all the related test cases