Entity unit test for destructor