Fine tune class test.
Add finalize helper.