Add a test when deleting an entity