this example has an assert that checks wether or nor the finalizers ran correctly. If they don't then a mem leak will happen