Fix an issue where there were warnings about using non-extension safe API in the test targets.
Restructure the persist method to silence a warning about unreachable code. Previously, the final abort() in the do block was unreachable from the tests. Now using a defer to abort before the method returns.
abort()
in thedo
block was unreachable from the tests. Now using adefer
to abort before the method returns.