test loading during global destruction
some slight optimizations