Verifies that delete works correctly.