Test for finalizer bug

Sorry, this went under my radar. I did write a test. It seems to be working fine. I don't remember why I didn't push it earlier but I do remember something was bugging me…