writing tests...
Use Devel::GlobalDestruction to detect global destruction phase.