Unit test for deletion.