Add finalization test
Add static initialization test