Adds a test for the before destroy hook recently added to nucorefile.