added test for before and after Destroy callback