[Testing] Fix fixture & register finalizer earlier