test delete entity