Test delete function.