Fixes leaking current transient in tests.