test case is done for delete functionality