Change FinalizeTest to use helper function

Old way kept the object live in a vreg.

Bug: 25851249

(cherry picked from commit cf3d432790a78b7d81da656f9a666f3d1ce4962c)

Change-Id: I3cefd317e23c602c6c74dd866f0831161ef10962
1 file changed