Fixed proper test finalize