tests for delete