Test finalization