added test for delete