If the test binary ran long enough after test completion to reach the
ResourceSlice removal grace period, that background activity started and failed
because it was using out-dated state and an invalid testing.T pointer, causing
a panic.
The root cause was to leave those background activities running. They need to
be stopped before a test returns.