add test for delete function